<?php 
defined( '_PSPEXEC_' ) or die( 'Restricted access' );
return array (
  0 => 
      array (
             'title'=>'文本',
             'pspdiv'=>'<psp:form PSPframework_DIV />',	
			 'html'=>'
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
?> 			 
			 <input value="<?php echo ${PSPframework_LIST(name)} ;?>" {PSPframework_CONFIG(name&type&size&maxlength&id&class)} />',			 				 			 				 
             'config'=>array(
				             'name'=>'',						 
				             'type'=>'text',
				             'value'=>'',								 
				             'size'=>'',								 
				             'maxlength'=>'',
				             'id'=>'',								 
				             'class'=>'',								 						 							 
				             )		   
		    ),	   	
  1 => 
      array (
             'title'=>'密码',
             'pspdiv'=>'<psp:form PSPframework_DIV />',	
			 'html'=>'
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
?> 			 
			 <input {PSPframework_CONFIG(name&type&value&size&maxlength&id&class)} />',		 				 			 				 
             'config'=>array(
				             'name'=>'',						 
				             'type'=>'password',
				             'value'=>'',								 
				             'size'=>'',								 
				             'maxlength'=>'',
				             'id'=>'',								 
				             'class'=>'',							 							 
				             )		   
		    ),	
  2 => 
      array (
             'title'=>'单选按钮',
             'pspdiv'=>'<psp:form PSPframework_DIV />',	
			 'html'=>'
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
?>  			 
			 <input {PSPframework_CONFIG(name&type&value&checked&id&class)} <?php if ( ${PSPframework_LIST(name)}=="{PSPframework_CONFIG(ICONK)}") { ?> checked <?php  } ?>  />{PSPframework_CONFIG(ICON)}',				 			 				 
             'config'=>array(
				            'name'=>'',						 
				            'type'=>'radio',
				            'value'=>'',								 
				            'checked'=>'',
				            'id'=>'',								 
				            'class'=>'',							 								 						 
				            )		   
		    ),	

  3 => 
      array (
             'title'=>'复选框',
             'pspdiv'=>'<psp:form PSPframework_DIV />',	
			 'html'=>'
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
?> 			 
			 <input {PSPframework_CONFIG(name&type&value&checked&id&class)} <?php if ( strstr( ${PSPframework_LIST(name)} , "{PSPframework_CONFIG(ICONK)}" )) { ?> checked <?php  } ?>  />{PSPframework_CONFIG(ICON)}',				 			 				 
             'config'=>array(
				            'name'=>'',						 
				            'type'=>'checkbox',
				            'value'=>'',								 
				            'checked'=>'',
				            'id'=>'',								 
				            'class'=>'',							 								 						 
				            )		   
		    ),

  4 => 
      array (
             'title'=>'隐藏按钮',
             'pspdiv'=>'<psp:form PSPframework_DIV />',	
			 'html'=>'
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
?> 			 
			 <input {PSPframework_CONFIG(name&type&id&class)} value="<?php echo ${PSPframework_LIST(name)} ;?>" />',				 			 				 
             'config'=>array(
				            'name'=>'',							 
				            'type'=>'hidden',
				            'value'=>'',	
				            'id'=>'',								 
				            'class'=>'',		 							 							 						 
				            )		   
		    ),
  5 => 
      array (
             'title'=>'按钮',
             'pspdiv'=>'<psp:form PSPframework_DIV />',	
			 'html'=>'
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
?> 			 
			 <input {PSPframework_CONFIG(name&type&value&disabled&id&class)} />',				 			 				 
             'config'=>array(
				            'name'=>'',						 
				            'type'=>'button',
				            'value'=>'',	
							'disabled'=>'',	
				            'id'=>'',								 
				            'class'=>'',			 						 							 						 
				            )		   
		    ),

  6 => 
      array (
             'title'=>'提交按钮',
             'pspdiv'=>'<psp:form PSPframework_DIV />',	
			 'html'=>'
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
?> 			 
			 <input {PSPframework_CONFIG(name&type&value&disabled&id&class)} />',				 			 				 
             'config'=>array(
				            'name'=>'',						 
				            'type'=>'submit',
				            'value'=>'',	
							'disabled'=>'',
				            'id'=>'',								 
				            'class'=>'',		 							 							 						 
				            )		   
		    ),

  7 => 
      array (
             'title'=>'重置按钮',
             'pspdiv'=>'<psp:form PSPframework_DIV />',	
			 'html'=>'
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
?> 			 
			 <input {PSPframework_CONFIG(name&type&value&disabled&id&class)} />',				 			 				 
             'config'=>array('name'=>'',						 
				            'type'=>'reset',
				            'value'=>'',	
							'disabled'=>'',
				            'id'=>'',								 
				            'class'=>'',		 							 							 						 
				            )		   
		    ),

  8 => 
      array (
             'title'=>'文本域',
             'pspdiv'=>'<psp:form PSPframework_DIV />',	
			 'html'=>'
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
?> 			 
			 <textarea {PSPframework_CONFIG(name&type&cols&rows&disabled&id&class)} /><?php echo {PSPframework_CONFIG(ICON)} ;?></textarea>',				 			 				 
             'config'=>array(
				            'name'=>'',						 
				            'type'=>'textarea',
				            'cols'=>'',
				            'rows'=>'',
				            'value'=>'',							 							 	
							'disabled'=>'',
				            'id'=>'',								 
				            'class'=>'',		 							 							 						 
				            )		   
		    ),

  9 => 
      array (
             'title'=>'下拉列表（菜单）',
             'pspdiv'=>'<psp:form PSPframework_DIV />',	
			 'html'=>'
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
?> 			 
			 <select {PSPframework_CONFIG(name&size&type)} />{PSPframework_CHIRD}</select>',	
			 'html_chird'=>'<option {PSPframework_CONFIG(value&selected)} <?php if (${PSPframework_LIST(name)}=="{PSPframework_CONFIG(ICONK)}") { ?> selected <?php  } ?> />{PSPframework_CONFIG(ICON)}</option>',	
             'config'=>array(
				            'name'=>'',							 
				            'type'=>'select',
				            'size'=>'',
				            'value'=>'',							 							 							 	
							'selected'=>'',
				            'id'=>'',								 
				            'class'=>'',		 							 							 						 
				            )		   
		    ),

  10 => 
      array (
             'title'=>'网页编辑器',
             'pspdiv'=>'<psp:form PSPframework_DIV />',	
			 'html'=>'
<?php
if(!isset( ${PSPframework_LIST(name)} )){
${PSPframework_LIST(name)} = "";
}
?> 
<script type="text/javascript" charset="utf-8">
        window.UEDITOR_HOME_URL = "<?php echo $this->_webroot("skin/ueditor/"); ?>";		
</script>
 <?php if (!defined("PSPframework_DIV_webeditor_SRUE")) { ?> <?php define("PSPframework_DIV_webeditor_SRUE",1);?>
<script type="text/javascript" src="<?php echo $this->_webroot("skin/ueditor/editor_config.js"); ?>"></script>
<script type="text/javascript" src="<?php echo $this->_webroot("skin/ueditor/editor_all.js"); ?>"></script>	
<?php } ?>
<div class="divEditor">
	<script {PSPframework_CONFIG(name)}  id="{PSPframework_LIST(name_HtmlId)}" type="text/plain"><?php echo ${PSPframework_LIST(name)} ;?></script>
</div>
<?php
{PSPframework_CONFIG($edtype)};
{PSPframework_CONFIG($width)};
{PSPframework_CONFIG($height)}; 
?>
<script text="text/javascript">
     //实例化编辑器
    var options = {
	<?php if ($edtype !="all") { ?>
	    toolbars :[[\'fullscreen\', \'source\', \'|\',\'print\', \'preview\', \'searchreplace\',\'help\']],	
	<?php } ?>	
        initialFrameWidth:<?php if($width){echo $width;}else {echo "860";}?>,
        initialFrameHeight:<?php if($height){echo $height;}else {echo "420";}?>,
        focus:true
    };
    var ue = UE.getEditor("{PSPframework_LIST(name_HtmlId)}", options);
    ue.addListener("ready",function(){
        this.focus()
    });
</script>
',	
             'config'=>array(
				            'name'=>'',						 
				            'type'=>'webeditor',
				            '$width'=>'860',
				            '$height'=>'420',							 							 							 	
				            '$edtype'=>'all',						 
				            )		   
		    ),

  11 => 
      array (
             'title'=>'单张图片上传',
             'pspdiv'=>'<psp:form PHPSCUP_DIV />',	
			 'html'=>'<?php if (!defined("PHPSCUPDIV_OUPPIC_SRUE")) { ?> <?php define("PHPSCUPDIV_OUPPIC_SRUE",1);?><SCRIPT LANGUAGE="JavaScript">
<!--
function UPF_upfile(url,b){
	document.getElementById(b).value=url;
}
//-->
</SCRIPT> <?php } ?>   
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
{PSPframework_CONFIG($updir)};
?>   
 <input type="text" {PSPframework_CONFIG(name&size)} value="<?php echo ${PSPframework_LIST(name)} ;?>"  id="UP_{PSPframework_LIST(name_HtmlId)}"><br/>
 <iframe name="MF_{PSPframework_LIST(name_HtmlId)}" {PSPframework_CONFIG(frameborder&height&scrolling&width)} src="<?php echo $this->_url("psptool/upfile/");?>?tf=pic&jsfun=UPF_upfile&updir=<?php if($updir){echo $updir;}else {echo "temp";}?>&uppic=UP_{PSPframework_LIST(name_HtmlId)}&picurl=<?php echo ${PSPframework_LIST(name)} ;?>" ></iframe>',	
             'config'=>array(
				            'name'=>'',						 
				            'type'=>'ouppic',
				            'width'=>'370',
				            'height'=>'150', 							 							 	
							'scrolling'=>'no',
				            'frameborder'=>'0',
							'size'=>'40',
							'$updir'=>'temp',							
				            )		   
		    ),
  12 => 
      array (
             'title'=>'多图片上传',
             'pspdiv'=>'<psp:form PHPSCUP_DIV />',	
			 'html'=>'<?php if (!defined("PHPSCUPDIV_DOUPPIC_SRUE")) { ?> <?php define("PHPSCUPDIV_DOUPPIC_SRUE",1);?><SCRIPT LANGUAGE="JavaScript">
<!--
function UPF_dupfile(url,b){
	document.getElementById(b).value+=url;
}
//-->
</SCRIPT> <?php } ?>   
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
{PSPframework_CONFIG($updir)};
?>   
 <input type="text" {PSPframework_CONFIG(name&size)} value="<?php echo ${PSPframework_LIST(name)} ;?>"  id="UP_{PSPframework_LIST(name_HtmlId)}"><br/>
 <iframe name="MF_{PSPframework_LIST(name_HtmlId)}" {PSPframework_CONFIG(frameborder&height&scrolling&width)} src="<?php echo $this->_url("psptool/pupfile/");?>?tf=pic&jsfun=UPF_dupfile&updir=<?php if($updir){echo $updir;}else {echo "temp";}?>&uppic=UP_{PSPframework_LIST(name_HtmlId)}&picurl=<?php echo ${PSPframework_LIST(name)} ;?>" ></iframe>',	
             'config'=>array(
				            'name'=>'',						 
				            'type'=>'duppic',
				            'width'=>'370',
				            'height'=>'150', 							 							 	
							'scrolling'=>'no',
				            'frameborder'=>'0',
							'size'=>'40',
							'$updir'=>'temp',							
				            )		   
		    ),			
  13 => 
      array (
             'title'=>'日期表',
             'pspdiv'=>'<psp:form PSPframework_DIV />',	
			 'html'=>'
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
?>  			 
<?php if (!defined("PSPframework_DIV_TIME_SRUE")) { ?> <?php define("PSPframework_DIV_TIME_SRUE",1);?><script src="<?php echo $this->base;?><?php echo str_replace(array(DS),array("/") , $this->viewWebrootPath); ?>/js/calenderJS.js"></script><?php } ?>
<input {PSPframework_CONFIG(name&size)} type="text" value="<?php echo ${PSPframework_LIST(name)} ; ?>" id="{PSPframework_LIST(name_HtmlId)}" onfocus="HS_setDate(this)" />',	
             'config'=>array(
				            'name'=>'',						 
				            'type'=>'time', 							 							 	
							'size'=>'10',						 
				            )		   
		    ),
  14 => 
      array (
             'title'=>'百度地图',
             'pspdiv'=>'<psp:form PSPframework_DIV />',	
			 'html'=>'
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
{PSPframework_CONFIG($width)};
{PSPframework_CONFIG($height)};
?> 		 
<input type="text" {PSPframework_CONFIG(name)} value="<?php echo ${PSPframework_LIST(name)} ; ?>"  id="{PSPframework_LIST(name_HtmlId)}" onclick="map_input_onclick_{PSPframework_LIST(name_HtmlId)}()"  readonly=\'true\'/>  	
<script>function map_input_onclick_{PSPframework_LIST(name_HtmlId)}(){ 
   var openurl_map = "<?php echo $this->_url("psptool/baidumap/");?>?callback=SMV_{PSPframework_LIST(name_HtmlId)}";
   var openurl_map_point = "<?php echo ${PSPframework_LIST(name)} ; ?>";
   if(!openurl_map_point) openurl_map_point = document.getElementById("{PSPframework_LIST(name_HtmlId)}").value;
   openurl_map += "&point="+openurl_map_point;
   window.open(  openurl_map,\'newwindow\',\'height=<?php if($height){echo $height;}else {echo "350";}?>,width=<?php if($width){echo $width;}else {echo "450";}?>,toolbar=no,menubar=no,scrollbars=no, resizable=no,location=no, status=no\');
}
function SMV_{PSPframework_LIST(name_HtmlId)}(val){document.getElementById("{PSPframework_LIST(name_HtmlId)}").value=val;}</script>',	
             'config'=>array(
				            'name'=>'',						 
				            'type'=>'baidumap', 							 							 	
				            '$width'=>'350',
				            '$height'=>'450', 						 
				            )		   
		    ),	
			
			
  15 => 
      array (
             'title'=>'单文件上传',
             'pspdiv'=>'<psp:form PHPSCUP_DIV />',	
			 'html'=>'<?php if (!defined("PHPSCUPDIV_OUPPIC_SRUE")) { ?> <?php define("PHPSCUPDIV_OUPPIC_SRUE",1);?><SCRIPT LANGUAGE="JavaScript">
<!--
function UPF_upfile(url,b){
	document.getElementById(b).value=url;
}
//-->
</SCRIPT> <?php } ?>   
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
{PSPframework_CONFIG($updir)};
?>   
 <input type="text" {PSPframework_CONFIG(name&size)} value="<?php echo ${PSPframework_LIST(name)} ;?>"  id="UP_{PSPframework_LIST(name_HtmlId)}"><br/>
 <iframe name="MF_{PSPframework_LIST(name_HtmlId)}" {PSPframework_CONFIG(frameborder&height&scrolling&width)} src="<?php echo $this->_url("psptool/upfile/");?>?tf=file&jsfun=UPF_upfile&updir=<?php if($updir){echo $updir;}else {echo "temp";}?>&uppic=UP_{PSPframework_LIST(name_HtmlId)}&picurl=<?php echo ${PSPframework_LIST(name)} ;?>" ></iframe>',	
             'config'=>array(
				            'name'=>'',						 
				            'type'=>'onedownfile',
				            'width'=>'370',
				            'height'=>'150', 							 							 	
							'scrolling'=>'no',
				            'frameborder'=>'0',
							'size'=>'40',
							'$updir'=>'temp',							
				            )		   
		    ),			

	
  16 => 
      array (
             'title'=>'多文件上传',
             'pspdiv'=>'<psp:form PHPSCUP_DIV />',	
			 'html'=>'<?php if (!defined("PHPSCUPDIV_DOUPPIC_SRUE")) { ?> <?php define("PHPSCUPDIV_DOUPPIC_SRUE",1);?><SCRIPT LANGUAGE="JavaScript">
<!--
function UPF_dupfile(url,b){
	document.getElementById(b).value+=url;
}
//-->
</SCRIPT> <?php } ?>   
<?php
if(isset( $this->{PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = $this->{PSPframework_LIST(name)};
}
if(!isset( ${PSPframework_LIST(name)} )){
    ${PSPframework_LIST(name)} = "";
}
{PSPframework_CONFIG($updir)};
?>   
 <input type="text" {PSPframework_CONFIG(name&size)} value="<?php echo ${PSPframework_LIST(name)} ;?>"  id="UP_{PSPframework_LIST(name_HtmlId)}"><br/>
 <iframe name="MF_{PSPframework_LIST(name_HtmlId)}" {PSPframework_CONFIG(frameborder&height&scrolling&width)} src="<?php echo $this->_url("psptool/pupfile/");?>?tf=file&jsfun=UPF_dupfile&updir=<?php if($updir){echo $updir;}else {echo "temp";}?>&uppic=UP_{PSPframework_LIST(name_HtmlId)}&picurl=<?php echo ${PSPframework_LIST(name)} ;?>" ></iframe>',	
             'config'=>array(
				            'name'=>'',						 
				            'type'=>'ddownfile',
				            'width'=>'370',
				            'height'=>'150', 							 							 	
							'scrolling'=>'no',
				            'frameborder'=>'0',
							'size'=>'40',
							'$updir'=>'temp',							
				            )		   
		    ),	
);
?>